package com.cheng.demo.nacos.provider.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "demo-nacos-dubbo-provider")
@RestController
@RequestMapping("/demo/nacos/provider")
public class EchoController {

    @ApiOperation("提供者回显")
    @GetMapping("/echo/{string}")
    public String echo(@PathVariable String string) {
        return "回显的字符串：" + string;
    }
}
